package logic

import (
	"strconv"
	"vueAdmin/application/model"
	"vueAdmin/application/utils"
)

func GetUserList(username string, realname string, pageNum int, pageSize int) utils.BackPageData {
	var res = utils.BackPageData{}
	list, totalStr := model.GetUserList(username, realname, pageNum, pageSize)
	res.List = list
	res.CurrentPage = pageNum
	res.PageSize = pageSize
	res.Total, _ = strconv.Atoi(totalStr)
	return res
}
